package com.wangfugui.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangfugui.mybatisplus.domain.PortfolioInformation;

import java.time.Year;
import java.time.YearMonth;
import java.util.Date;

public interface PortfolioInformationService extends IService<PortfolioInformation> {
    PortfolioInformation getYesTodayInformation(Date reportDate);
    PortfolioInformation  getFirstOfMonthInformation(YearMonth yearMonth);
    PortfolioInformation  getFirstOfYearInformation(Year year);
    PortfolioInformation  getFirstInformation();
    PortfolioInformation getLastOfLastMonthInformation(YearMonth yearMonth);

    String getYTDPnl(Date reportDate,String mtdPnl);
    String getITDPnl(Date reportDate,String mtdPnl);
}
